(* $Id: PFOLTypesEncoding.mli 71 2007-10-16 10:05:54Z yann.regisgianas $ *)

(* Pangolin, a functional programming language for correct programs.
   Copyright (C) 2007, Yann Régis-Gianas, François Pottier.
   Contact: yann.regisgianas@gmail.com

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>. *)

open XCoreSyntax

(** FIXME *)
val encode_xprimitive_type_as_primitive_type :
  primitive_type -> PFOLSyntax.primitive_type

(** FIXME *)
val encode_term_type_as_term_type :
  PFOLEnv.env -> term_type -> PFOLSyntax.term_type

(** FIXME *)
val encode_formula_type_as_term_type :
  PFOLEnv.env -> formula_type -> PFOLSyntax.term_type

(** FIXME *)
val encode_formula_type_as_object_term_type :
  PFOLEnv.env -> formula_type -> PFOLSyntax.term_type

(** FIXME *)
val encode_formula_type_as_predicate_type :
  PFOLEnv.env -> formula_type -> PFOLSyntax.term_type list

(** FIXME *)
val encode_formula_type_scheme_as_predicate_type_scheme :
  Position.t ->
  PFOLEnv.env ->
  formula_type_scheme -> PFOLSyntax.opaque_predicate_type_scheme_abs

(** FIXME *)
val encode_formula_type_scheme_as_type_scheme :
  Position.t ->
  PFOLEnv.env -> formula_type_scheme -> PFOLSyntax.opaque_type_scheme_abs

(** FIXME *)
val encode_formula_type_scheme_as_object_type_scheme :
  Position.t ->
  PFOLEnv.env -> formula_type_scheme -> PFOLSyntax.opaque_type_scheme_abs

(** FIXME *)
val encode_xtype_scheme_as_type_scheme :
  Position.t ->
  PFOLEnv.env -> type_scheme -> PFOLSyntax.opaque_type_scheme_abs
